Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/compiler/jit/mark_for_compilation_pass.cc

        // if a special Identity node in the following pattern is clustered in.
        // That is, an Identity node in the loop cond computation is used to drive
        // const nodes consumed by the loop body.  If this Identity node goes into
        // the same cluster with nodes from the loop body, extra dependency is
        // created between the loop cond and body computations and it hinders the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

      // It's here so xla::Parameters that are created form block.getArguments will
      // have the proper shapes.
      TF_RETURN_IF_ERROR(RefineShapes(arg_shapes, module_op));
    
      mlir::func::FuncOp main = module_op.lookupSymbol<mlir::func::FuncOp>("main");
      mlir::Block& block = main.getRegion().front();
      xla::XlaBuilder builder("main");
    
      // Create xla_params.
      std::vector<xla::XlaOp> xla_params;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

          "_xla", "_oc", "cluster", name_attrs, "cluster_rewritten", "host_graph",
          host_compute_core, &fld, &shape_inference_graphs,
          &has_outside_compilation));
    
      // Check host graph is not created.
      EXPECT_EQ(fld.Find("host_graph"), nullptr);
    }
    
    TEST_F(ExtractOutsideCompilationForFunctionTest, OutsideCompilationInIf) {
      // Build the XLA computation func.
      // "const0" (bool)
      // "const1" (int32)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc

      } else {
        builder.setInsertionPointToStart(&block);
      }
      TypeAttr type_attr = TypeAttr::get(new_type);
      auto quantize = builder.create<TFL::QuantizeOp>(value.getLoc(), new_type,
                                                      value, type_attr);
      auto dequantize = builder.create<TFL::DequantizeOp>(
          value.getLoc(), expressed_type, quantize.getOutput());
      value.replaceAllUsesWith(dequantize);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top