- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 44 for makeChan (0.24 sec)
-
tensorflow/cc/experimental/libtf/tests/runtime_test.cc
Tensor tensor, runtime.CreateHostTensor<float>({}, TF_FLOAT, {2.0f})); TF_ASSERT_OK_AND_ASSIGN(Tensor result, fn.Call<Tensor>(Tensor(tensor))); float out_val[1]; TF_ASSERT_OK(result.GetValue(absl::MakeSpan(out_val))); EXPECT_EQ(out_val[0], 6.0); } TEST_P(RuntimeTest, SimpleModelCallableIntTest) { Runtime runtime = RuntimeTest::GetParam()(); // Import the module and grab the callable
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 09 12:27:54 UTC 2023 - 4.8K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/op_implementation_renderer.cc
} void OpImplementationRenderer::RenderExecutionSingleOutput() { ArgView output_arg = op_.OnlyOutput(); Statement("int num_retvals = 1"); Statement("return $0->Execute(absl::MakeSpan($1, 1), &num_retvals)", op_.VariableName(), output_arg.VariableName()); } void OpImplementationRenderer::RenderExecutionMultipleOutputs() { Statement("int num_retvals = $0", op_.NumOutputs());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc
strlen(ResourceHandle::ANONYMOUS_NAME))); AbstractTensorHandle* var_handle = nullptr; int num_retvals = 1; TF_RETURN_IF_ERROR(varhandle_op->Execute( absl::MakeSpan(&var_handle, num_retvals), &num_retvals)); AbstractTensorHandlePtr owned_var_handle(var_handle); if (!tensorflow::isa<ImmediateExecutionTensorHandle>( owned_var_handle.get())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 11:28:19 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.cc
// Copy to eliminate the `const` qualifier so that `absl::MakeSpan` can be // called on it. std::vector<std::string> exported_names = signature_keys; absl::StatusOr<OwningOpRef<ModuleOp>> module_op = SavedModelSignatureDefsToMlirImport(saved_model_path, tags, absl::MakeSpan(exported_names), &ctx, import_options, &bundle);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 6.4K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/array_grad_test.cc
absl::Span<AbstractTensorHandle*> outputs) { std::vector<AbstractTensorHandle*> temp_outputs(2); TF_RETURN_IF_ERROR( ops::IdentityN(ctx, inputs, absl::MakeSpan(temp_outputs), "IdentityN")); // Although, `ops::IdentityN` returns 2 tensors, the first tensor isn't needed // for computing gradient so we could safely drop it. outputs[0] = temp_outputs[1]; temp_outputs[0]->Unref();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 13:53:47 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/c/eager/gradients_test.cc
s = RegisterGradients(®istry); ASSERT_EQ(errors::OK, s.code()) << s.message(); auto tape = std::make_unique<Tape>(/*persistent=*/false); s = Execute(check_numerics_op.get(), ctx.get(), absl::MakeSpan(outputs), &num_retvals, &forward_op, tape.get(), registry); ASSERT_EQ(errors::OK, s.code()) << s.message(); string read_message; s = forward_op.attrs.Get("message", &read_message);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/grad_test_helper.cc
double abs_error) { auto num_inputs = inputs.size(); std::vector<AbstractTensorHandle*> outputs(num_inputs); auto s = RunModel(grad_model, ctx, inputs, absl::MakeSpan(outputs), /*use_function=*/use_function); ASSERT_EQ(errors::OK, s.code()) << s.message(); for (int i = 0; i < num_inputs; ++i) { if (!outputs[i]) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 13:53:47 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/c/eager/unified_api_testutil.cc
std::vector<AbstractTensorHandle*> model_outputs; model_outputs.resize(outputs.size()); TF_RETURN_IF_ERROR(model(func_ctx.get(), absl::MakeSpan(func_inputs), absl::MakeSpan(model_outputs))); for (auto func_input : func_inputs) { func_input->Unref(); } AbstractFunction* func = nullptr; OutputList output_list;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 13:57:45 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.cc
ImmediateOpPtr function_op; TF_RETURN_IF_ERROR(func->MakeCallOp({}, &function_op)); AbstractTensorHandle* dummy_output = nullptr; int num_retvals = 1; TF_RETURN_IF_ERROR(function_op->Execute( absl::MakeSpan(&dummy_output, num_retvals), &num_retvals)); AbstractTensorHandlePtr owned_dummy_output(dummy_output); return Status(); } } // namespace RestoredResource::RestoredResource(const std::string& device,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 19:16:58 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_compile_on_demand_op.cc
GatherVariableInfo(ctx, *result, 0); TF_RETURN_IF_ERROR(variable_infos.status()); TF_RETURN_IF_ERROR(LockVariables(absl::MakeSpan(*variable_infos))); TF_RETURN_IF_ERROR(launch_context.PopulateOutputs( ctx, result, execution_output.ConsumeResult(), /*missing_ctx_input_prefix=*/0, absl::MakeSpan(*variable_infos), input_output_alias, snapshot_ptrs)); return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 08:39:39 UTC 2024 - 13.4K bytes - Viewed (0)