Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,137 for const2 (0.52 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

    namespace tac {
    namespace {
    
    // This pass is used to fold tfl.const ops to each subgraph (func::FuncOp):
    // See the example below:
    //
    // In main:
    // %0 = tfl.const...
    // %1 = tfl.const...
    // %2 = call func_1(..., %0,...)
    // %3 = call func_2(..., %0, ..., %1...)
    // ...
    //
    // Then those consts will be copied into each function and replace their usage.
    // func_1:
    //   %0 = tfl.const...
    // func_2:
    //   %0 = tfl.const...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/quantize_composite_functions.mlir

    // CHECK-DAG: %[[CONST_2:.+]] = stablehlo.constant dense<3> : tensor<1xi32>
    // CHECK-DAG: %[[CONST_3:.+]] = stablehlo.constant dense<4> : tensor<1xi32>
    // CHECK-DAG: %[[CONST_4:.+]] = stablehlo.constant dense<2> : tensor<1xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 91.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h

    // Creates a pass that creates a RestoreV2 op in the initializer function with
    // type "restore_op" that initializes variables from the checkpoint. It finds
    // tf.AssignVariableOp(tf.VarHandleOp, tf.Const) patterns in the initializer
    // function and replaces tf.Consts with the results of RestoreV2.
    std::unique_ptr<OperationPass<ModuleOp>> CreateInsertRestoreOpPass();
    
    // Creates a pass that creates a new function that wraps the newly created
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. src/go/doc/reader.go

    	// imports
    	imports      map[string]int
    	hasDotImp    bool // if set, package contains a dot import
    	importByName map[string]string
    
    	// declarations
    	values []*Value // consts and vars
    	order  int      // sort order of const and var declarations (when we can't use a name)
    	types  map[string]*namedType
    	funcs  methodSet
    
    	// support for package-local shadowing of predeclared types
    	shadowedPredecl map[string]bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/schema/schema_generated.h

    };
    
    inline const QuantizationDetails (&EnumValuesQuantizationDetails())[2] {
      static const QuantizationDetails values[] = {
        QuantizationDetails_NONE,
        QuantizationDetails_CustomQuantization
      };
      return values;
    }
    
    inline const char * const *EnumNamesQuantizationDetails() {
      static const char * const names[3] = {
        "NONE",
        "CustomQuantization",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
  6. tensorflow/compiler/aot/codegen_test_h.golden

        return static_cast<const float*>(arg_data(2));
      }
      const float& var_myvar_readonly() {
        return (*static_cast<const float(*)[1]>(
            arg_data(2)))[0];
      }
      const float* var_myvar_readonly_data() const {
        return static_cast<const float*>(arg_data(2));
      }
      const float& var_myvar_readonly() const {
        return (*static_cast<const float(*)[1]>(
            arg_data(2)))[0];
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/gen/cpp/views/op_view.cc

    }
    
    const std::vector<ArgView>& OpView::Inputs() const { return input_args_; }
    
    const std::vector<ArgView>& OpView::Outputs() const { return output_args_; }
    
    const std::vector<AttrView>& OpView::Attributes() const {
      return argument_attrs_;
    }
    
    const std::vector<OpArgumentView>& OpView::AllArguments() const {
      return all_arguments_;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

    // activations and weights.
    Type GetQuantizedType(Builder builder, const Type input_type,
                          const ArrayRef<double> min, const ArrayRef<double> max,
                          const int quant_dim, const int storage_type_width,
                          const bool narrow_range, const bool is_signed,
                          const bool legacy_float_scale,
                          const bool use_fake_quant_num_bits) {
      auto converter =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc

    // arguments that are on parameter servers
    bool HasPsWithResourceVariable(const Graph& graph) {
      // Check parameter serverjobs and resource variable arguments that are
      // on parameter servers.
      const std::string jobType = "ps";
      const std::string nodeType = "_Arg";
      const std::string attrKey = "T";
      for (const Node* node : graph.nodes()) {
        if (node->type_string() == nodeType) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 12:22:33 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api.cc

      }
    
      tensorflow::unwrap(op)->Release();
    }
    
    const char* TFE_OpGetName(const TFE_Op* op, TF_Status* status) {
      return tensorflow::unwrap(op)->Name().c_str();
    }
    
    TFE_Context* TFE_OpGetContext(const TFE_Op* op, TF_Status* status) {
      return tensorflow::wrap(tensorflow::unwrap(op)->GetContext());
    }
    
    void TFE_OpSetDevice(TFE_Op* op, const char* device_name, TF_Status* status) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
Back to top