- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TF_ShapeDims (0.13 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)