- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for TensorShape (0.1 seconds)
-
tensorflow/c/eager/gradients.cc
ForwardOperation* forward_op_) { if (num_dims > TensorShape::MaxDimensions()) { return absl::InvalidArgumentError( absl::StrCat("Value specified for `", attr_name, "` has ", num_dims, " dimensions which is over the limit of ", TensorShape::MaxDimensions(), ".")); } TensorShapeProto proto; if (num_dims < 0) {Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Tue Feb 24 06:18:31 GMT 2026 - 19.6K bytes - Click Count (0) -
tensorflow/c/c_api_experimental.cc
auto dtype = static_cast<tensorflow::DataType>(data_type); DCHECK(tensorflow::DataTypeCanUseMemcpy(dtype)); tensorflow::Tensor tensor(dtype, tensorflow::TensorShape({})); std::memcpy(tensorflow::TensorCApi::Buffer(tensor)->data(), data, len); status->status = absl::OkStatus(); return tensorflow::wrap(tensorflow::TensorHandle::CreateLocalHandle(tensor)); }
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 04 05:55:32 GMT 2025 - 29.4K bytes - Click Count (0) -
tensorflow/c/eager/c_api.cc
new TF_ManagedBuffer(data, len, deallocator, deallocator_arg, /*owns_memory=*/false); tensorflow::Tensor t(static_cast<tensorflow::DataType>(dtype), tensorflow::TensorShape(dimvec), buf); buf->Unref(); return tensorflow::wrap(tensorflow::TensorHandle::CreateLocalHandle( std::move(t), device, device, context)); }
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Fri Nov 07 05:55:21 GMT 2025 - 43.9K bytes - Click Count (0)