Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 233 for data_type_ (0.22 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/convert_type.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_types.def"
    
        default:
          return errors::Unimplemented(absl::StrCat(
              "Converting DataType '", DataTypeString(dtype), "' to MLIR Type"));
      }
    }
    
    Status ConvertScalarTypeToDataType(Type type, DataType* dtype) {
      if (type.isF16()) {
        *dtype = DT_HALF;
        return absl::OkStatus();
      } else if (type.isF32()) {
        *dtype = DT_FLOAT;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/test_utils.h

    // of `device_mgr`.
    EagerContextPtr CreateTestingEagerContext(DeviceMgr* device_mgr);
    
    // Converts a tensorflow::DatatypeSet to std::vector<DataType>.
    // This is useful for tests using GTest's ::testing::ValuesIn, since
    // DataTypeSet doesn't fullfill all the constraints of an STL-like iterable.
    std::vector<DataType> DataTypeSetToVector(DataTypeSet set);
    
    // Returns a vector of shapes intended to be "interesting" test cases.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/test_utils.cc

          /* async= */ false, device_mgr,
          /* device_mgr_owned= */ false, /* rendezvous= */ nullptr,
          /* cluster_flr= */ nullptr));
    }
    
    std::vector<DataType> DataTypeSetToVector(DataTypeSet set) {
      std::vector<DataType> result;
      result.reserve(set.size());
      for (DataType dt : set) {
        result.push_back(dt);
      }
      return result;
    }
    
    std::vector<std::vector<int64_t>> InterestingShapes() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:13:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/convert_type_test.cc

                                    DataType::DT_INT32));
    
      // Partially known shapes.
      EXPECT_EQ("tensor<?x27x?xbf16>",
                ConvertToMlirString({-1, 27, -1}, /*unknown_rank=*/false,
                                    DataType::DT_BFLOAT16));
    
      // Unranked shapes.
      EXPECT_EQ("tensor<*xf32>",
                ConvertToMlirString({}, /*unknown_rank=*/true, DataType::DT_FLOAT));
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/sort/gen_sort_variants.go

    	Imports string
    
    	// FuncSuffix is appended to all function names in this variant's code. All
    	// suffixes should be unique within a package.
    	FuncSuffix string
    
    	// DataType is the type of the data parameter of functions in this variant's
    	// code.
    	DataType string
    
    	// TypeParam is the optional type parameter for the function.
    	TypeParam string
    
    	// ExtraParam is an extra parameter to pass to the function. Should begin with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/context.kt

    }
    
    
    class SchemaTypeRefContext(val schema: AnalysisSchema) : TypeRefContext {
        override fun resolveRef(dataTypeRef: DataTypeRef): DataType = when (dataTypeRef) {
            is DataTypeRef.Name -> schema.dataClassesByFqName.getValue(dataTypeRef.fqName)
            is DataTypeRef.Type -> dataTypeRef.dataType
        }
    }
    
    
    /**
     * Represents a unique operation within a particular generation.  The invocation id should be unique within a single
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/core/revived_types/variable.h

      static Status CreateUninitialized(
          ImmediateExecutionContext* ctx, DataType dtype, TensorShape shape,
          absl::optional<std::string> name, const char* raw_device_name,
          const std::vector<std::string>& component_devices,
          std::unique_ptr<Variable>* output);
    
      // The dtype of the underlying variable.
      DataType dtype();
    
      // The shape of the underlying variable.
      TensorShape shape();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 19:43:25 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top