Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 182 for created (0.18 sec)

  1. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

          // Create new ConstantOp-Dequantize-Operation sequences. At this moment,
          // old ConstantOp is guaranteed to have one F32->F16 cast regardless of
          // its number of users.
          rewriter.setInsertionPointAfter(op);
          auto new_const = rewriter.create<arith::ConstantOp>(
              op->getLoc(), new_result_type, new_value_attr);
          auto dq = rewriter.create<DQ>(op->getLoc(), old_result_type, new_const);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

        func::FuncOp parent_func, ModuleOp module, const std::string& name) {
      // Moves all of the Operations in 'ops' into a newly created func.FuncOp
      // function named 'name' and replaces the original ops with a call to the
      // newly created function using a tf.StatefulPartitionedCall. Here,
      // 'parent_func' is the function that holds the original set of ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

      }
    
      SmallVector<Value> return_values;
      for (Value result : results) {
        return_values.push_back(mapping.lookupOrNull(result));
      }
      builder.create<func::ReturnOp>(location, return_values);
    
      // Create a function call to the newly created function.
      StringAttr new_func_name =
          InsertToSymbolTable(*module, *wrap_func, func_name);
      builder.setInsertionPointAfter(result_op);
      ValueRange new_results =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc

      if (subtypes.size() != 1) {
        return std::nullopt;
      }
      return subtypes[0].getElementType();
    }
    
    // Create an `ConstBytesAttr` which encodes the options
    // for the `tf.custom` tensor list op to be created. If the given
    // op is not a `tf.TensorList*` op, return empty, although this case
    // should never be trigged in practice since patterns are only applied
    // on `tf.TensorList*` ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

          // Cannot canonicalize ShapeN if all inputs are dynamic.
          return failure();
        }
    
        // Create a ShapeNOp for all dynamic inputs.
        if (!dynamic_inputs.empty()) {
          auto dynamic_shape_n = rewriter.create<TF::ShapeNOp>(
              op.getLoc(), result_types, dynamic_inputs);
          for (auto index_result :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_device_context.cc

            xla_tensor->AllocateShapedBuffer(device_tensor->dtype(), shape, client_,
                                             stream_->parent()->device_ordinal()));
    
        // The cpu_tensor and literal that we created here hold the data of host
        // tensor in descending layout. The layout could be different from layout in
        // device_tensor (but the logical shape has to be the same). The
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

            builder, block.getParent()->getLoc(), execute, device);
    
        builder->create<tf_device::ReturnOp>(block.getParent()->getLoc(),
                                                   block_launch_op.getResults());
      }
    
      return success();
    }
    
    // Creates a `tf.TPUCompileSucceededAssert` operation that parses compilation
    // status of `compile_op` to check whether compilation is successful.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

        ModuleOp module) {
      SymbolTableCollection table;
      SymbolUserMap symbol_map(table, module);
      llvm::DenseMap<func::FuncOp, llvm::DenseSet<func::FuncOp>> caller_callee_map;
      // Creates work queue for determining reachability below.
      std::queue<func::FuncOp> function_worklist;
    
      for (auto func : module.getOps<func::FuncOp>()) {
        for (auto user : symbol_map.getUsers(func)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

        func::FuncOp parent_func, ModuleOp module, const std::string& name,
        bool flag_for_inlining) {
      // Moves all of the Operations in 'ops' into a newly created func.FuncOp
      // function named 'name' and replaces the original ops with a call to the
      // newly created function using a tf.StatefulPartitionedCall. Here,
      // 'parent_func' is the function that holds the original set of ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc

        module_op.emitError() << "quant-convert-tpu-model-to-cpu pattern "
                                 "conversion did not converge.";
        signalPassFailure();
        return;
      }
    }
    
    }  // namespace
    
    // Creates an instance of `ConvertTpuModelToCpuPass`.
    std::unique_ptr<OperationPass<ModuleOp>> CreateConvertTpuModelToCpuPass() {
      return std::make_unique<ConvertTpuModelToCpuPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top