- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 121 for data_type_ (0.58 sec)
-
tensorflow/c/experimental/saved_model/core/tensor_spec.h
public: // Constructs a scalar, DT_FLOAT TensorSpec TensorSpec(); TensorSpec(PartialTensorShape shape, DataType dtype); explicit TensorSpec(const TensorSpecProto& proto); const PartialTensorShape& shape() const; DataType dtype() const; private: PartialTensorShape shape_; DataType dtype_; }; } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 29 23:11:59 UTC 2020 - 1.8K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc
#include "tensorflow/core/protobuf/saved_object_graph.pb.h" namespace tensorflow { namespace { class SavedVariableLoadingTest : public ::testing::TestWithParam< std::tuple<DataType, std::vector<int64_t>>> { public: SavedVariableLoadingTest() { SessionOptions options; options.config.mutable_device_count()->insert({"CPU", 3}); std::vector<std::unique_ptr<Device>> devices;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 09:34:33 UTC 2024 - 6.2K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoPlugins/PluginsDemo.kt
val error = result.errors.singleOrNull() assertNotNull(error) val reason = error.errorReason assertIs<ErrorReason.AssignmentTypeMismatch>(reason) assertIs<DataType.StringDataType>(reason.expected) assertIs<DataType.IntDataType>(reason.actual) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:01 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/resolution.kt
data class ValReassignment(val localVal: LocalValue) : ErrorReason data class ExternalReassignment(val external: ObjectOrigin.External) : ErrorReason data class AssignmentTypeMismatch(val expected: DataType, val actual: DataType) : ErrorReason // TODO: these two are never reported for now, instead it is UnresolvedFunctionCallSignature data object UnusedConfigureLambda : ErrorReason data object MissingConfigureLambda : ErrorReason
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:46 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/ops/variable_ops.h
DataType dtype, TensorShape shape, const char* raw_device_name, ImmediateTensorHandlePtr* handle); // Executes an AssignVariableOp using `ctx`, assigning the variable associated // with `variable_handle` with `value`. `dtype` must be the datatype of the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Aug 30 21:44:45 UTC 2022 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/mangling_util.h
// Demangle a string mangled with MangleTensor. Status DemangleTensor(absl::string_view str, TensorProto* proto); // Return a DataType mangled as a string. string MangleDataType(const DataType& dtype); // Demangle a string mangled with MangleDataType. Status DemangleDataType(absl::string_view str, DataType* proto); } // namespace mangling_util } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 28 22:08:30 UTC 2020 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_tensor_buffer_util.cc
#include "tsl/platform/statusor.h" namespace tensorflow { static size_t GetTensorSize(const TensorShape& shape, const DataType dtype) { return shape.num_elements() * DataTypeSize(dtype); } absl::StatusOr<Tensor> MakeTensorFromPjRtBuffer( const DataType dtype, const TensorShape& shape, std::unique_ptr<xla::PjRtBuffer> pjrt_buffer) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 14 18:14:47 UTC 2023 - 3.5K bytes - Viewed (0) -
tensorflow/c/eager/unified_api_testutil.h
TFE_TensorHandle* input_eager = TestTensorHandleWithDims<T, datatype>(eager_ctx, data, dims, num_dims); *tensor = unwrap(TF_CreateAbstractTensorFromEagerTensor(input_eager, status.get())); return absl::OkStatus(); } // Return a scalar tensor handle with given value. template <class T, TF_DataType datatype> Status TestScalarTensorHandle(AbstractContext* ctx, const T value,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 13:57:45 UTC 2024 - 4K 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) -
tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc
return mlir::cast<mlir::StringAttr>(index_path[0]).getValue(); } return ""; } absl::StatusOr<std::pair<tensorflow::DataType, tensorflow::PartialTensorShape>> ProcessTensorSpec(mlir::TensorType type) { tensorflow::DataType dtype; TF_RETURN_IF_ERROR( ConvertScalarTypeToDataType(type.getElementType(), &dtype)); if (!type.hasRank())
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0)