- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TF_ShapeDims (0.15 sec)
-
tensorflow/c/tf_shape.cc
#include "tensorflow/c/tf_shape_internal.h" #include "tensorflow/core/framework/tensor_shape.h" extern "C" { TF_Shape* TF_NewShape() { return tensorflow::wrap(new tensorflow::PartialTensorShape()); } int TF_ShapeDims(const TF_Shape* shape) { return tensorflow::unwrap(shape)->dims(); } int64_t TF_ShapeDimSize(const TF_Shape* shape, int d) { return tensorflow::unwrap(shape)->dim_size(d); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 30 00:25:41 UTC 2020 - 1.2K bytes - Viewed (0) -
tensorflow/c/tf_shape.h
// calling TF_DeleteShape to deallocate and destroy the returned shape. TF_CAPI_EXPORT extern TF_Shape* TF_NewShape(); // Returns the rank of `shape`. If `shape` has unknown rank, returns -1. TF_CAPI_EXPORT extern int TF_ShapeDims(const TF_Shape* shape); // Returns the `d`th dimension of `shape`. If `shape` has unknown rank, // invoking this function is undefined behavior. Returns -1 if dimension is // unknown.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 30 00:25:41 UTC 2020 - 1.7K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc
// Input "a" is a scalar, float32 tensor EXPECT_EQ("a", std::string(TF_SignatureDefParamName(param_a))); EXPECT_EQ(TF_FLOAT, TF_TensorSpecDataType(tensor_spec_a)); EXPECT_EQ(0, TF_ShapeDims(shape_a)); const TF_SignatureDefParam* param_b = TF_SignatureDefParamListGet(args, 1); const TF_TensorSpec* tensor_spec_b = TF_SignatureDefParamTensorSpec(param_b);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 08:08:45 UTC 2024 - 21.3K bytes - Viewed (0)