Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for addAttributes (0.21 sec)

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

        mlir::SymbolRefAttr val =
            mlir::SymbolRefAttr::get(builder_.getContext(), node_type_name);
        result.addAttribute("f", val);
    
        if (!result.attributes.get("_disable_call_shape_inference")) {
          result.addAttribute("_disable_call_shape_inference",
                              builder_.getBoolAttr(false));
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

                        Attribute value) {
      // Handle the case where the type and value are already tensors.
      if (mlir::isa<TensorType>(type) && mlir::isa<ElementsAttr>(value)) {
        result.addTypes(type);
        result.addAttribute("value", value);
        return;
      }
    
      // Otherwise, default to the attribute builder.
      ConstOp::build(builder, result, value);
      assert(type == result.types[0] && "type mismatch in construction");
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
Back to top