Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 263 for created (0.09 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        auto slice_size_attr = DenseIntElementsAttr::get(idx_type, slice_size_i32);
        auto slice_size =
            rewriter.create<arith::ConstantOp>(op.getLoc(), slice_size_attr);
    
        ArrayRef<int64_t> strides = op.getStrides();
        // If stride of every dimension is 1, create tfl.slice and return early.
        // Otherwise, create tfl.strided_slice instead.
        if (llvm::all_of(strides, [](int64_t stride) { return stride == 1; })) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

                                        tflite::BuiltinOperator builtin) {
      auto it = opcode_index_map_.insert({op_name, 0});
    
      // If the insert succeeded, the opcode has not been created already. Create a
      // new operator code and update its index value in the map.
      if (it.second) {
        it.first->second = opcodes_.size();
        auto custom_code = builtin == tflite::BuiltinOperator_CUSTOM
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/math_grad.cc

      auto output_shape_kept_dims =
          ReducedShapeHelper(scope, input_shape, op.input(1));
    
      // This step "flips" any 1s with values from the input_shape, and
      // replaces remaining entries with 1. This creates a shape that
      // shows how much each dimension in the incoming gradient should be
      // replicated.
      // tile_scaling = [1, 3]
      auto tile_scaling = SafeDivHelper(scope, input_shape, output_shape_kept_dims);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

            rewriter.create<SubtractOp>(loc, b_max_diag_len, diag_len_d), b_zero);
    
        // x = max(d, 0) - offset
        // y = max(-d, 0) - offset
        Value x = rewriter.create<SubtractOp>(
            loc, rewriter.create<MaxOp>(loc, d, b_zero), offset);
        Value y = rewriter.create<SubtractOp>(
            loc, rewriter.create<MaxOp>(loc, neg_d, b_zero), offset);
    
        Value n_plus_x = rewriter.create<AddOp>(loc, iotaN, x);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/quantize.cc

        // be categorized as cusom ops despite each of them may require different
        // behaviors. In that case, these ops can be marked in the custom map and
        // treated separately in this pass.
    
        auto custom_op = llvm::dyn_cast_or_null<CustomOp>(op);
        if (!custom_op) return false;
    
        // Custom op which is marked in the custom op map is quantizable.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc

      if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) {
        module_op.emitError() << "quant-cast-bf16-ops-to-f32 failed.";
        signalPassFailure();
      }
    }
    
    }  // namespace
    
    // Creates an instance of the Cast BF16 ops to F32 pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreateCastBf16OpsToF32Pass() {
      return std::make_unique<CastBf16OpsToF32Pass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc

                                   "attribute in the quantized composite function.";
          signalPassFailure();
        }
      }
    }
    
    }  // namespace
    
    // Creates an instance of the pass for inserting quantized functions.
    std::unique_ptr<OperationPass<ModuleOp>> CreateInsertQuantizedFunctionsPass(
        QuantMethod quantization_method, OpSet target_opset) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

        return;
      }
    
      auto new_func_type =
          builder.getFunctionType(new_input_types, new_output_types);
      func.setType(new_func_type);
    }
    }  // namespace
    
    // Creates an instance of the TensorFlow Lite modify io nodes pass.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateModifyIONodesPass(
        Type input_type, Type output_type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc

        return WalkResult::advance();
      });
      if (result.wasInterrupted()) {
        return failure();
      }
    
      return builder.getArrayAttr(function_list);
    }
    
    // Creates a pruned module containing the XlaCallModule's entry function and
    // other functions transitively called by the entry function.
    FailureOr<OwningOpRef<ModuleOp>> PruneStablehloModule(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. tensorflow/cc/saved_model/fingerprinting.cc

            result_hash, tensorflow::Fingerprint64(concrete_function_serialized));
      }
      // TODO(b/241294832): Complete canonicalization of `object_graph_def.nodes`.
      return result_hash;
    }
    
    // Creates a FingerprintDef proto from a SavedModel and the checkpoint meta file
    // (.index) in `export_dir`.
    absl::StatusOr<FingerprintDef> CreateFingerprintDefPb(
        absl::string_view export_dir, std::string pb_file) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 26 00:24:44 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top