Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 101 for type_attr (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      DataType dtype;
      TF_RETURN_IF_ERROR(ConvertToDataType(arg_type.getElementType(), &dtype));
      AttrValue type_attr;
      type_attr.set_type(dtype);
      (*node_def->mutable_attr())["T"] = type_attr;
    
      AttrValue index_attr;
      index_attr.set_i(index);
      (*node_def->mutable_attr())["index"] = index_attr;
    
      if (auto device_attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      DataType dtype;
      TF_RETURN_IF_ERROR(ConvertToDataType(arg_type.getElementType(), &dtype));
      AttrValue type_attr;
      type_attr.set_type(dtype);
      (*node_def->mutable_attr())["T"] = type_attr;
    
      AttrValue index_attr;
      index_attr.set_i(index);
      (*node_def->mutable_attr())["index"] = index_attr;
    
      if (auto device_attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/fuzzing/cc_op_fuzz_gen.cc

                std::string type = "DT_UINT8";
    
                if (arg.type() != DT_INVALID) {
                  type = DataType_Name(arg.type());
                } else if (!arg.type_attr().empty()) {
                  OpDef_AttrDef attr =
                      *FindAttr(arg.type_attr(), op_info.graph_op_def);
                  if (attr.has_default_value() &&
                      attr.default_value().value_case() == AttrValue::kType) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 27 16:26:51 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. tensorflow/cc/framework/cc_op_gen_util.cc

      }
      return string(name);
    }
    
    void InferArgAttributes(const OpDef::ArgDef& arg,
                            std::unordered_map<string, string>* inferred_attrs) {
      if (!arg.type_attr().empty()) {
        gtl::InsertIfNotPresent(inferred_attrs, arg.type_attr(), arg.name());
      } else if (!arg.type_list_attr().empty()) {
        gtl::InsertIfNotPresent(inferred_attrs, arg.type_list_attr(), arg.name());
      }
      if (!arg.number_attr().empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

            attr_type, attr_def.name, attr_def.type)
      else:
        attr_names = []
        if arg_def.number_attr:
          attr_names.append(arg_def.number_attr)
        if arg_def.type_attr:
          attr_names.append(arg_def.type_attr)
        if arg_def.type_list_attr:
          attr_names.append(arg_def.type_list_attr)
    
        # TODO(fengliuai): currently we don't support backward type inference, so we
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        for (auto type_and_name :
             llvm::zip(intermediate_types, kIntermediateNames)) {
          mlir::TypeAttr type_attr =
              mlir::TypeAttr::get(std::get<0>(type_and_name));
          auto named_attr =
              builder.getNamedAttr(std::get<1>(type_and_name), type_attr);
          op_state.addAttribute(named_attr.getName(), named_attr.getValue());
        }
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

          return false;
        }
      }
      return true;
    }
    
    // Returns the tensor type created from the `shape_attr` and `type_attr`
    // attributes.
    Type GetType(Attribute shape_attr, Attribute type_attr) {
      auto shape = mlir::cast<tf_type::ShapeAttr>(shape_attr);
      auto type = mlir::cast<TypeAttr>(type_attr);
      if (shape.hasRank())
        return tensorflow::GetTypeFromTFTensorShape(shape.getShape(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

        type_attr = attr_value_pb2.AttrValue(type=types_pb2.DT_QINT8)
        if quantize:
          self.assertTrue(
              self._contains_op(output_graphdef, 'Const', 'dtype', type_attr)
          )
        else:
          self.assertFalse(
              self._contains_op(output_graphdef, 'Const', 'dtype', type_attr)
          )
    
      @parameterized.named_parameters(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  9. tensorflow/cc/saved_model/testdata/chunked_saved_model/chunked_model/saved_model.pbtxt

              name: "condition"
              type: DT_BOOL
            }
            input_arg {
              name: "t"
              type_attr: "T"
            }
            input_arg {
              name: "e"
              type_attr: "T"
            }
            output_arg {
              name: "output"
              type_attr: "T"
            }
            attr {
              name: "T"
              type: "type"
            }
          }
          op {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 21:43:11 UTC 2023
    - 531.2K bytes
    - Viewed (0)
  10. subprojects/diagnostics/src/main/resources/org/gradle/api/tasks/diagnostics/htmldependencyreport/jquery.jstree.js

    				if(!obj || obj === -1) { obj = this.get_container().find("> ul > li"); }
    				li_attr = $.isArray(li_attr) ? li_attr : [ "id", "class" ];
    				if(!is_callback && this.data.types) { li_attr.push(s.types.type_attr); }
    				a_attr = $.isArray(a_attr) ? a_attr : [ ];
    
    				obj.each(function () {
    					li = $(this);
    					tmp1 = { data : [] };
    					if(li_attr.length) { tmp1.attr = { }; }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 09:03:42 UTC 2021
    - 49.5K bytes
    - Viewed (0)
Back to top