- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 48 for tensorspecs (0.3 sec)
-
tensorflow/cc/experimental/libtf/impl/iostream_test.cc
ASSERT_EQ(stream.str(), "None"); } 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/cc/saved_model/testdata/generate_saved_models.py
self.child.z = variables.Variable(3.0, name="child_variable") self.child.c = ops.convert_to_tensor(5.0) @def_function.function(input_signature=[ tensor_spec.TensorSpec((), dtypes.float32), tensor_spec.TensorSpec((), dtypes.float32) ]) def compute(self, a, b): return (a + self.x) * (b + self.y) / (self.child.z) + self.child.c class ReferencesParent(module.Module):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 18:06:18 UTC 2023 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/concurrency_test.py
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 11 00:47:05 UTC 2023 - 3.6K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/internal/testdata/gen_saved_models.py
self.uninitialized_variable = resource_variable_ops.UninitializedVariable( name="uninitialized_variable", dtype=dtypes.float32) @def_function.function( input_signature=[tensor_spec.TensorSpec((), dtypes.float32)]) def compute(self, value): return self.initialized_variable + value to_save = Module() saved_model.save(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 06 21:32:57 UTC 2023 - 3.4K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/signature_def_function_metadata.h
#include <vector> #include "tensorflow/c/experimental/saved_model/core/tensor_spec.h" #include "tensorflow/core/platform/status.h" #include "tensorflow/core/protobuf/struct.pb.h" namespace tensorflow { // SignatureDefParam represents a named Tensor input or output to a // SignatureDefFunction. class SignatureDefParam { public: SignatureDefParam(std::string name, TensorSpec spec); const std::string& name() const;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 29 23:11:59 UTC 2020 - 1.9K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/impl/tensor_spec_test.cc
namespace impl { TEST(TensorSpecTest, TestSupportsAbslHash) { tensorflow::PartialTensorShape unknown_shape; TensorSpec ts1; ts1.shape = unknown_shape; ts1.dtype = tensorflow::DT_FLOAT; TensorSpec ts2; ts2.shape = tensorflow::PartialTensorShape({2}); ts2.dtype = tensorflow::DT_FLOAT; TensorSpec ts3; ts3.shape = tensorflow::PartialTensorShape({1, 2}); ts3.dtype = tensorflow::DT_FLOAT;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 09:47:46 UTC 2024 - 1.5K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/value.h
const TaggedValueTensor& tensor() const { return get<TaggedValueTensor>(); } /// Retrieves underlying value from a TaggedValue with type TENSOR_SPEC. const TensorSpec& tensor_spec() const { return get<TensorSpec>(); } /// Retrieves underlying value from a TaggedValue with type CAPSULE. void* capsule() const { return get<impl::Capsule>().get(); } /// Retrieves type of TaggedValue.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:23:45 UTC 2024 - 20.4K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/impl/iostream.cc
#include "tensorflow/cc/experimental/libtf/impl/tensor_spec.h" namespace tf { namespace libtf { namespace impl { std::ostream& operator<<(std::ostream& o, const None& none) { return o << "None"; } std::ostream& operator<<(std::ostream& o, const String& str) { return o << str.str(); } std::ostream& operator<<(std::ostream& o, const TensorSpec& x) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Aug 09 21:11:15 UTC 2021 - 1.5K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/internal/tensor_spec_type.h
#include "tensorflow/c/conversion_macros.h" #include "tensorflow/c/experimental/saved_model/core/tensor_spec.h" typedef struct TF_TensorSpec TF_TensorSpec; namespace tensorflow { DEFINE_CONVERSION_FUNCTIONS(tensorflow::TensorSpec, TF_TensorSpec) } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 30 17:58:21 UTC 2020 - 1.1K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/public/signature_def_param.h
// Returns the name of the given parameter. The caller is not responsible for // freeing the returned char*. TF_CAPI_EXPORT extern const char* TF_SignatureDefParamName( const TF_SignatureDefParam* param); // Returns the TensorSpec associated with the given parameter. The caller is // not reponsible for freeing the returned TF_TensorSpec*. TF_CAPI_EXPORT extern const TF_TensorSpec* TF_SignatureDefParamTensorSpec( const TF_SignatureDefParam* param);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 30 17:58:21 UTC 2020 - 1.7K bytes - Viewed (0)