- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 54 for makeChan (0.16 sec)
-
src/cmd/compile/internal/staticinit/sched.go
if n.Y.Op() != ir.OLITERAL || constant.Sign(n.Y.Val()) == 0 { return true } // Only possible side effect is panic on invalid size, // but many makechan and makemap use size zero, which is definitely OK. case ir.OMAKECHAN, ir.OMAKEMAP: n := n.(*ir.MakeExpr) if !ir.IsConst(n.Len, constant.Int) || constant.Sign(n.Len.Val()) != 0 { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 17:16:14 UTC 2024 - 30.7K bytes - Viewed (0) -
src/reflect/all_test.go
// check creation of unbuffered channel var c chan int cv := MakeChan(TypeOf(c), 0) c = cv.Interface().(chan int) if cv.TrySend(ValueOf(7)) { t.Errorf("TrySend on sync chan succeeded") } if v, ok := cv.TryRecv(); v.IsValid() || ok { t.Errorf("TryRecv on sync chan succeeded: isvalid=%v ok=%v", v.IsValid(), ok) } // len/cap cv = MakeChan(TypeOf(c), 10) c = cv.Interface().(chan int)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
tensorflow/c/experimental/ops/math_ops.cc
TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(x)); TF_RETURN_IF_ERROR(op_ptr->AddInput(y)); int num_retvals = 1; return op_ptr->Execute(absl::MakeSpan(z, 1), &num_retvals); } // Op: Conj() // Summary: Returns the complex conjugate of a complex number. // // Description: // Given a tensor `input` of complex numbers, this operation returns a tensor
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 12.2K bytes - Viewed (0) -
tensorflow/c/experimental/ops/array_ops.cc
TF_RETURN_IF_ERROR(op_ptr->Reset("Identity", raw_device_name)); TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(input)); int num_retvals = 1; return op_ptr->Execute(absl::MakeSpan(output, 1), &num_retvals); } // Op: IdentityN() // Summary: Returns a list of tensors with the same shapes and contents as the // input // // Description: // tensors. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 6.7K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/golden/testing_ops.cc.golden
TF_RETURN_IF_ERROR(op_ptr->Reset("Neg", raw_device_name)); TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(x)); int num_retvals = 1; return op_ptr->Execute(absl::MakeSpan(y, 1), &num_retvals); } // Op: MatMul() // Summary: // // Description:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 16 19:04:03 UTC 2023 - 6.5K bytes - Viewed (0) -
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/resource_variable_ops.cc
TF_RETURN_IF_ERROR(op_ptr->SetAttrShape("shape", shape)); TF_RETURN_IF_ERROR( op_ptr->SetAttrStringList("allowed_devices", allowed_devices)); int num_retvals = 1; return op_ptr->Execute(absl::MakeSpan(resource, 1), &num_retvals); } // Op: ReadVariableOp() // Summary: Reads the value of a variable. // // Description: // The tensor returned by this operation is immutable. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 5.1K bytes - Viewed (0) -
tensorflow/c/experimental/ops/nn_ops.cc
TF_RETURN_IF_ERROR(MaybeSetOpName(op_ptr.get(), name)); TF_RETURN_IF_ERROR(op_ptr->AddInput(gradients)); TF_RETURN_IF_ERROR(op_ptr->AddInput(features)); int num_retvals = 1; return op_ptr->Execute(absl::MakeSpan(backprops, 1), &num_retvals); } // Op: Relu() // Summary: Computes rectified linear: `max(features, 0)`. // // Description: // See: https://en.wikipedia.org/wiki/Rectifier_(neural_networks) // Example usage:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 10 19:11:36 UTC 2022 - 5.9K 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)