- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 149 for Dtype (0.04 sec)
-
tensorflow/c/experimental/gradients/math_grad.cc
auto dtype = input->DataType(); if (DataTypeIsFloating(BaseType(dtype)) || DataTypeIsInteger(BaseType(dtype))) { return tensorflow::ops::Identity(ctx, input, output, name); } else if (!DataTypeIsComplex(BaseType(dtype)) && BaseType(dtype) != DT_VARIANT) { return errors::InvalidArgument( "Expected numeric or variant tensor, got dtype ", dtype); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 13:53:47 UTC 2024 - 15.2K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc
// 1. does not cause an error // 2. preserves dtype and shape. TEST_P(SavedVariableLoadingTest, LoadSavedVariableSuccessful) { auto& test_params = GetParam(); DataType dtype = std::get<0>(test_params); TensorShape shape(std::get<1>(test_params)); SavedVariable saved_variable; saved_variable.set_dtype(dtype); shape.AsProto(saved_variable.mutable_shape()); std::unique_ptr<Variable> var;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 09:34:33 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/jit/node_matchers.cc
if (tensor.dtype() != expected_tensor.dtype()) { if (listener->IsInterested()) { *listener << "\nexpected tensor of type " << DataType_Name(expected_tensor.dtype()) << " but found one of type " << DataType_Name(tensor.dtype()); return false; } } switch (tensor.dtype()) { case DT_HALF:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 03 16:15:20 UTC 2022 - 16.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/op_stat_pass.cc
auto operand_or_result = value_shaped_type.getElementType(); std::string dtype; TypeSwitch<Type>(operand_or_result) .Case<IntegerType>([&](Type) { dtype = absl::StrCat("i", operand_or_result.getIntOrFloatBitWidth()); }) .Case<FloatType>([&](Type) { dtype = absl::StrCat("f", operand_or_result.getIntOrFloatBitWidth());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc
DataType dtype, TensorShape shape, const char* raw_device_name, ImmediateTensorHandlePtr* handle) { ImmediateOpPtr varhandle_op(ctx->CreateOperation()); TF_RETURN_IF_ERROR(varhandle_op->Reset("VarHandleOp", raw_device_name)); TF_RETURN_IF_ERROR(varhandle_op->SetAttrType("dtype", dtype));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 11:28:19 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/impl/iostream_test.cc
} TEST(OStreamTest, TestTensorSpec) { std::stringstream stream; TensorSpec tensor_spec; tensor_spec.shape = tensorflow::PartialTensorShape({2}); tensor_spec.dtype = tensorflow::DT_FLOAT; stream << tensor_spec; ASSERT_EQ(stream.str(), "TensorSpec(shape = [2], dtype = 1)"); } } // namespace impl } // namespace libtf
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 09:47:46 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device_ops.cc
mutex_lock ml(*variable->mu()); OP_REQUIRES( context, !variable->is_initialized || variable->tensor()->dtype() == dtype_, errors::InvalidArgument( "Trying to assign variable with wrong dtype. Expected ", DataTypeString(variable->tensor()->dtype()), " got ", DataTypeString(dtype_))); variable->is_initialized = true; *variable->tensor() = value; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/jit/shape_inference.cc
DataType dtype = n->output_type(0); AddNodeAttr("dtype", dtype, &const_def); TensorProto value; value.set_dtype(dtype); value.mutable_tensor_shape()->add_dim()->set_size( shape_proto.dim_size()); for (const auto& dim : shape_proto.dim()) { if (dtype == DT_INT32) { value.add_int_val(dim.size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 00:41:19 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compilation_cluster_signature.cc
// Functor that compares the arg values of two different signatures. Returns // true when the args are not equal. struct SignatureNotEqual { bool operator()(const Tensor& arg, const Tensor& other) { return arg.dtype() != other.dtype() || arg.shape() != other.shape() || arg.tensor_data() != other.tensor_data(); } bool operator()(const TensorTypeAndShape& arg, const TensorTypeAndShape& other) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 06:59:07 UTC 2024 - 4.7K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/tensor_spec.cc
TensorSpec::TensorSpec(PartialTensorShape shape, DataType dtype) : shape_(std::move(shape)), dtype_(dtype) {} TensorSpec::TensorSpec(const TensorSpecProto& proto) : shape_(proto.shape()), dtype_(proto.dtype()) {} const PartialTensorShape& TensorSpec::shape() const { return shape_; } DataType TensorSpec::dtype() const { return dtype_; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 1.3K bytes - Viewed (0)