added precondition for matmul (#601)
added precondition for matmul (#601)

Assert that input tensors are at least rank 2.
tensorflow/swift-apis,tensorflow/swift-apis,tensorflow/swift-apis,tensorflow/swift-apis,tensorflow/swift-apis