- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for resources (0.18 sec)
-
tensorflow/c/c_api.cc
*dst = tensorflow::Tensor(tensorflow::DT_RESOURCE, dst->shape()); if (!dst->scalar<tensorflow::ResourceHandle>()().ParseFromString( string(static_cast<const char*>(tensor_interface->Data()), tensor_interface->ByteSize()))) { return InvalidArgument( "Malformed TF_RESOURCE tensor: unable to parse resource handle"); } return absl::OkStatus(); } return absl::OkStatus(); }
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_api_experimental.cc
TF_ShapeAndTypeList* input_tensors_as_shapes, TF_ShapeAndTypeList** input_resource_shapes_and_types, TF_ShapeAndTypeList** output_shapes, TF_ShapeAndTypeList*** output_resource_shapes_and_types, TF_Status* status) { using tensorflow::NodeDef; using tensorflow::OpRegistrationData;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 29.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); // The device of var_handle0 is local device which is the same before and // after cluster update. Remove resource with valid device should succeed. TFE_Op* op = TFE_NewOp(ctx, "DestroyResourceOp", status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_OpAddInput(op, var_handle0, status);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Apr 14 10:03:59 GMT 2023 - 19.3K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/custom_gradient_test.cc
tape.RecordOperation(inputs, {exp_output}, gradient_function.release()); TF_RETURN_IF_ERROR(tape.ComputeGradient(ctx, /*targets*/ {exp_output}, /*sources=*/inputs, /*output_gradients=*/{}, /*result=*/outputs)); exp_output->Unref(); return absl::OkStatus(); }
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 4.8K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/grad_test_helper.cc
TF_RETURN_IF_ERROR( forward_model(tape_ctx.get(), inputs, absl::MakeSpan(temp_outputs))); TF_RETURN_IF_ERROR(tape.ComputeGradient(ctx, /*targets=*/temp_outputs, /*sources=*/inputs, /*output_gradients=*/{}, outputs)); for (auto temp_output : temp_outputs) { temp_output->Unref(); } return absl::OkStatus(); }; }
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 5K bytes - Viewed (0) -
tensorflow/c/eager/gradients.cc
std::unordered_map<int64_t, TapeTensor> sources_that_are_targets; for (int i = 0; i < target_tensor_ids.size(); ++i) { int64_t target_id = target_tensor_ids[i]; if (sources_set.find(target_id) != sources_set.end()) { auto tensor = targets[i]; sources_that_are_targets.insert( std::make_pair(target_id, TapeTensor(tensor))); } }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 19.3K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/c_api.cc
container_name, plugin_resource_name, &tf_plugin_resource, [plugin_resource_name, create_func, create_func_args, delete_func](tensorflow::PluginResource** new_resource) { void* opaque_plugin_resource = create_func(create_func_args); *new_resource = new tensorflow::PluginResource( opaque_plugin_resource, plugin_resource_name, delete_func);
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Tue Jan 09 00:52:04 GMT 2024 - 13.9K bytes - Viewed (1) -
tensorflow/c/c_api_test.cc
static_cast<TF_Code>(tensorflow::error::PERMISSION_DENIED)); EXPECT_EQ(TF_UNAUTHENTICATED, static_cast<TF_Code>(tensorflow::error::UNAUTHENTICATED)); EXPECT_EQ(TF_RESOURCE_EXHAUSTED, static_cast<TF_Code>(tensorflow::error::RESOURCE_EXHAUSTED)); EXPECT_EQ(TF_FAILED_PRECONDITION, static_cast<TF_Code>(tensorflow::error::FAILED_PRECONDITION));
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/eager/c_api_test.cc
EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TF_DeleteStatus(status); } BENCHMARK(BM_ExecuteFunction)->Arg(0)->Arg(1); TEST(CAPI, Variables) { // Variables use resource handles, so this is really a test for resource // tensor handling. TF_Status* status = TF_NewStatus(); TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_Context* ctx = TFE_NewContext(opts, status);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 20:50:20 GMT 2023 - 94.6K bytes - Viewed (1) -
tensorflow/c/eager/c_api_distributed_test.cc
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 23.5K bytes - Viewed (0)