- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for CreateTensor (0.18 sec)
-
tensorflow/c/tf_tensor.cc
"TensorFlow C Api", LogMemory::EXTERNAL_TENSOR_ALLOCATION_STEP_ID, data, allocator, false); } allocator->DeallocateRaw(data); } } // namespace tensorflow namespace { TF_Tensor* CreateTensor(TF_ManagedBuffer* buf, TF_DataType dtype, const int64_t* dims, int num_dims, size_t len) { std::vector<int64_t> dimvec(num_dims); for (int i = 0; i < num_dims; ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/restore_ops.cc
const std::string& s, ImmediateTensorHandlePtr* out) { int64_t flat_shape[] = {1}; AbstractTensorPtr tensor(ctx->CreateTensor(DT_STRING, flat_shape)); if (tensor.get() == nullptr) { return errors::Internal( "Failed to create vector string tensor for checkpoint restore"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 4.5K bytes - Viewed (0) -
tensorflow/c/eager/immediate_execution_context.h
virtual AbstractTensorInterface* CreateComplex128Scalar(complex128 value) = 0; virtual AbstractTensorInterface* CreateBoolScalar(bool value) = 0; // Tensor creation functions virtual AbstractTensorInterface* CreateTensor( DataType dtype, absl::Span<const int64_t> dim_sizes) = 0; typedef void (*MemoryReleaser)(void* data, size_t len, void* arg); // Create a tensor instance from the given data buffer and description.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 06 08:34:00 UTC 2023 - 12.3K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/test_utils.cc
DataType dtype, absl::Span<const int64_t> shape, int8_t value) { AbstractTensorPtr tensor(ctx->CreateTensor(dtype, shape)); CHECK_NE(tensor.get(), nullptr) << "Tensor creation failed for tensor of dtype: " << DataTypeString(dtype); CHECK_EQ(tensor->Type(), dtype); for (int i = 0; i < shape.size(); ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Sep 08 20:13:32 UTC 2023 - 5.8K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/runtime/runtime.h
return maybe_capsule.status(); } auto capsule = maybe_capsule.value(); auto ctx = capsule.cast<tensorflow::ImmediateExecutionContext*>(); tensorflow::AbstractTensorPtr t( ctx->CreateTensor(static_cast<tensorflow::DataType>(dtype), shape)); // TODO(srbs): This is still a weak check. Check that dtype and T are // compatible. if (t->ByteSize() != sizeof(T) * data.size()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 01 11:18:25 UTC 2022 - 4.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental.cc
if (ctx == nullptr) { status->status = tensorflow::errors::InvalidArgument("Invalid Context"); return nullptr; } tensorflow::AbstractTensorInterface* t = tensorflow::unwrap(ctx)->CreateTensor( static_cast<tensorflow::DataType>(dtype), dimvec); if (t == nullptr) { status->status = tensorflow::errors::InvalidArgument("Unsupported dtype: ", dtype); return nullptr; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 11 23:52:39 UTC 2024 - 35.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
q_params = tflite::CreateQuantizationParameters( builder_, builder_.CreateVector<float>(mins), builder_.CreateVector<float>(maxs)); } return tflite::CreateTensor( builder_, builder_.CreateVector(shape), tflite_element_type, /*buffer=*/0, builder_.CreateString(name), q_params, /*is_variable=*/false, /*sparsity=*/0, /*shape_signature=*/0,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/schema/schema_generated.h
return tflite::CreateTensor( _fbb, shape__, type, buffer, name__, quantization, is_variable, sparsity, shape_signature__, has_rank, variant_tensors__); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 1M bytes - Viewed (0)