- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for less (0.18 sec)
-
tensorflow/c/c_api.cc
const size_t* proto_lens, int num_shapes, TF_Status* status) { std::vector<TensorShapeProto> shapes; shapes.resize(num_shapes); for (int i = 0; i < num_shapes; ++i) { if (proto_lens[i] > std::numeric_limits<int>::max()) { status->status = InvalidArgument( "length of element ", i, " in the list (", proto_lens[i],
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
return op; } TF_Operation* LessThan(TF_Output l, TF_Output r, TF_Graph* graph, TF_Status* s) { TF_OperationDescription* desc = TF_NewOperation(graph, "Less", "less_than"); TF_AddInput(desc, l); TF_AddInput(desc, r); return TF_FinishOperation(desc, s); } TF_Operation* RandomUniform(TF_Operation* shape, TF_DataType dtype,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:52 GMT 2021 - 17.8K bytes - Viewed (2) -
tensorflow/c/c_api_test.cc
TF_DeleteGraph); TF_SessionOptions* opts = TF_NewSessionOptions(); TF_Session* sess = TF_NewSession(graph.get(), opts, s); TF_DeleteSessionOptions(opts); const string gpu_device_name = GPUDeviceName(sess); TF_DeleteSession(sess, s); CHECK_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); return gpu_device_name; }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/experimental/gradients/nn_grad_test.cc
AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> inputs, absl::Span<AbstractTensorHandle*> outputs) { AbstractTensorHandle* loss; AbstractTensorHandle* backprop; TF_RETURN_IF_ERROR(ops::SparseSoftmaxCrossEntropyWithLogits( ctx, inputs[0], inputs[1], &loss, &backprop, "SparseSoftmaxCrossEntropyWithLogits")); // `gradient_checker` only works with model that returns only 1 tensor.
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 8.3K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler_test.cc
EXPECT_EQ(list_total_size, storage_size); std::unique_ptr<char*[]> values(new char*[nodes_preserved.size()]); std::unique_ptr<size_t[]> lens(new size_t[nodes_preserved.size()]); std::unique_ptr<char[]> storage(new char[storage_size]); TF_GetNodesToPreserveList(c_item, values.get(), lens.get(), nodes_preserved.size(), storage.get(), storage_size, status);
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Thu Apr 13 22:30:58 GMT 2023 - 11.6K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device.cc
// A ParallelDevice on its own is not registered with a TFE_Context, and so has // no device name (e.g. for `tf.device`). `NamedParallelDevice` associates a // name with it, which lets us pack its `ParallelTensor`s into TFE_TensorHandles // placed on the parallel device. class NamedParallelDevice { public: NamedParallelDevice(const std::string& name,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Mar 29 22:05:31 GMT 2023 - 18.3K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Aug 31 12:04:23 GMT 2020 - 24.9K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
if (copy_size < n) { // Forget the end-of-file flag to allow for clients that poll on the // same file. gcs_file->buffer_end_is_past_eof = false; TF_SetStatus(status, TF_OUT_OF_RANGE, "Read less bytes than requested"); return copy_size; } TF_SetStatus(status, TF_OK, ""); return copy_size; } } } // namespace tf_random_access_file
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 23 06:55:53 GMT 2023 - 46.9K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
outputs.resize(2, {nullptr, -1}); // Create loop: while (input1 < input2) input1 += input2 + 1 TF_Operation* less_than = LessThan( params->cond_inputs[0], params->cond_inputs[1], params->cond_graph, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); params->cond_output = {less_than, 0}; TF_Operation* add1 = Add(params->body_inputs[0], params->body_inputs[1],
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 20 22:08:54 GMT 2023 - 63.6K bytes - Viewed (6) -
tensorflow/c/eager/c_api_experimental.cc
if (prefix == nullptr || strlen(prefix) == 0) prefix = "/job:localhost/replica:0/task:0"; tensorflow::SessionOptions sess_options; (*sess_options.config.mutable_device_count())["CPU"] = num_cpus; status->status = tensorflow::DeviceFactory::AddCpuDevices(sess_options, prefix, &devices); // Remove the device that has the host device name since host device is alreay // in an initialized context.
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 11 23:52:39 GMT 2024 - 35.9K bytes - Viewed (3)