tensorflow/c/experimental/saved_model/core/signature_flattening_test.cc
// Validates names, shapes, and dtypes of two tensorspecprotos are equivalent.
Validates names, shapes, and dtypes of two tensorspecprotos are equivalent.
Validates names shapes and dtypes of two tensorspecprotos are equivalent .
bool TensorSpecsAreEqual(const TensorSpecProto& spec,
                         const std::string& expected_name,
                         const PartialTensorShape& expected_shape,
                         DataType expected_dtype) {
  return spec.name() == expected_name &&
         PartialTensorShape(spec.shape()).IsIdenticalTo(expected_shape) &&
         spec.dtype() == expected_dtype;
}
bool TensorSpecsAreEqual ( const TensorSpecProto & spec , const std :: string & expected_name , const PartialTensorShape & expected_shape , DataType expected_dtype ) { return spec . name ( ) == expected_name && PartialTensorShape ( spec . shape ( ) ) . IsIdenticalTo ( expected_shape ) && spec . dtype ( ) == expected_dtype ; }
Validates names, shapes, and dtypes of two tensorspecprotos are equivalent.
Validates names shapes and dtypes of two tensorspecprotos are equivalent .